#include "rule_iec101.h"
#include <QDebug>
#include <QDate>


RULE_IEC101::RULE_IEC101()
    :IRule()
{
}

RULE_IEC101::~RULE_IEC101()
{
}

void RULE_IEC101::Run()
{
    qDebug() << "Run:" << QDate::currentDate();
}

void RULE_IEC101::Eat()
{
    qDebug() << "Eat:" << QDate::currentDate();
}

void RULE_IEC101::Sleep()
{
    qDebug() << "Sleep:" << QDate::currentDate();
}

void RULE_IEC101::HelloWord()
{
    qDebug() << "Hello Rules!";
}

IRule* CreateRule()
{
    IRule* pRule = new RULE_IEC101();
    return pRule;
//    return 0;
}

void ReleaseRule(IRule * pRule)
{
    delete pRule;
}
